<include file="__THEME__/header" />
<link rel="stylesheet" href="../Public/event.css" type="text/css" media="screen" charset="utf-8" />

<!--<script type="text/javascript" src="../Public/Js/tinymce/tiny_mce.js"></script>-->
<script  type="text/javascript" src="__PUBLIC__/js/rcalendar.js" ></script>
<script type="text/javascript" src="../Public/Js/event.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/form_check/jquery.validator.reg.js"></script>
<link href="__PUBLIC__/js/form_check/type.css" rel="stylesheet" type="text/css" />

<div class="content"><!-- 内容 begin  -->
  <include file="__THEME__/apps" />
  <div class="main"><!-- 画布 begin  -->
  <div class=page_title> <!-- page_title begin -->
  <h2><span class="right fn f12px"><a href="javascript:history.back( -1 )">返回上一页</a></span><img src="../Public/images/ico_app05.gif" />发起活动</h2>
  <div class="c"></div>
</div><!-- page_title end -->
  <div class="groupBox">
    <div class="boxL" style="width:640px;">
  	<div class="box1">
      <form method="post" action="__URL__/doAddEvent"  enctype="multipart/form-data" onsubmit="return check();">
        <ul class="add_event">
       	  <li>
       	    <div class="c1">活动名称：<span class="cRed pr5">*</span></div>
       	    <div class="c2"><input name="title" type="text" class="TextH20" id="title" onfocus="this.className='Text2'" onblur="this.className='TextH20'" maxlength="60" />
       	    </div></li>
          <li>
            <div class="c1"> 活动城市：&nbsp;&nbsp;&nbsp;</div>
            <div class="c2">
            <input type="hidden" name="ts_current" id="ts_current">
              <input type="text" class="TextH20" onfocus="this.className='Text2'" onblur="this.className='TextH20'" size="30" name="city" id="current" readonly/><input type="button" class="btn_b" value="选择地区" selectArea="true" areatype="current" >
            </div>
          </li>
          <li><div class="c1"> 活动地点：<span class="cRed pr5">*</span></div>
          
            <div class="c2"><input name="address" type="text" class="TextH20" id="address" onfocus="this.className='Text2'" onblur="this.className='TextH20'"  maxlength="30"/></div>
          </li>
          <li>
            <div class="c1"> 活动分类：<span class="cRed pr5">*</span></div>
            <div class="c2">
              <select name="type" id="type">
                <option value="0" selected>请选择活动分类</option>
                      				<?php foreach($type as $k=>$cate){ ?>
                                         <option value="{$k}">{$cate}</option>
                                         <?php } ?>
                </volist>
              </select>
            </div>
          </li>
          <li><div class="c1"> 活动经费：&nbsp;&nbsp;&nbsp;</div>
            <div class="c2"><select name="cost">
            <option value="0" selected="selected">免费</option>
            <option value="1">AA制</option>
            <option value="2">50元以下</option>
            <option value="3">50-200元</option>
            <option value="4">200-500元</option>
            <option value="5">500-1000元</option>
            <option value="6">1000元以上</option>
          </select> 
              资费说明：
              <input name="costExplain" type="text" class="TextH20" id="textfield2" onfocus="this.className='Text2'" onblur="this.className='TextH20'" size="30" />
            </div>
          </li>
          <li><div class="c1"> 活动时间：<span class="cRed pr5">*</span></div>
            <div class="c2"><input name="sTime" type="text" class="TextH20" id="sTime" onfocus="this.className='Text2';rcalendar(this,'full');" onblur="this.className='TextH20'" readonly />
               -  
                 <input name="eTime" type="text" class="TextH20" id="eTime" onfocus="this.className='Text2';rcalendar(this,'full');" onblur="this.className='TextH20'" readonly />
            </div>
          </li>
          <li><div class="c1"> 截止报名：<span class="cRed pr5">*</span></div>
            <div class="c2"> <input name="deadline" type="text" class="TextH20" id="deadline" onfocus="this.className='Text2';rcalendar(this,'full');" id="deadline" onblur="this.className='TextH20'" readonly /> </div>
          </li>
          <li><div class="c1"> 活动人数：&nbsp;&nbsp;&nbsp;</div>
            <div class="c2"> <input name="limitCount" type="text" class="TextH20" id="limitCount" onfocus="this.className='Text2'" onblur="this.className='TextH20'" onKeyUp="this.value=this.value.replace(/\D/g,'')" maxlength="5" value="0" />
              <span class="cGray2"> 活动人数上限，设0表示无限制</span></div>
          </li>
          
          <li><div class="c1">活动介绍：<span class="cRed pr5">*</span></div><div class="c2">
          {:W("Edit",array('smileList'=>$smileList,'smilePath'=>$smilePath,'cols'=>60,'rows'=>20,'name'=>'explain','id'=>'explain'))}
          
          </div></li>
          <li>
            <div class="c1">联系方式：&nbsp;&nbsp;&nbsp;</div>
            <div class="c2">
              <input name="contact" type="text" class="TextH20" id="contact" onfocus="this.className='Text2'" onblur="this.className='TextH20'" size="30" />
              <br /><span class="cGray2">填写联系人电话，如：张小姐，1346665XXXX            </span></div>
          </li>
          <!--
          <li>
            <div class="c1">关联群组：<span class="cRed pr5">*</span></div>
            <div class="c2">
              <select name="select3">
                <option>选择关联群组</option>
              </select><br />
              <span class="cGray2">必须是您自己创建的分，关联后活动话题会同步到该群组。</span></div>
          </li>
          -->
          <li>
            <div class="c1">活动选项：&nbsp;&nbsp;&nbsp;</div>
            <div class="c2">
              <label>
              <input type="checkbox" name="friend" id="choice1" value="1" />
只允许我的好友参加该活动</label>
          <br />
        <label><input type="checkbox" name="alow" id="choice2" value="1" />
        活动参加人员需要审批</label>
            </div>
          </li>
          <li>
            <div class="c1">活动海报：&nbsp;&nbsp;&nbsp;</div>
            <div class="c2"> <input name="cover" type="file" />
     
            </div>
          </li>
          <li>
                  <div class="c1">将图片上传到：&nbsp;&nbsp;&nbsp;</div> 
               <div class="c2">
            {:W('AlbumList',array( 'uid'=>$mid , 'form_name'=>'albumId' , 'selected'=>intval($_GET['albumId']) ) )}
            </div>
          </li>
          <li>
            <div class="c1">&nbsp;</div>
            <div class="c2">
              <input name="button" type="submit" class="btn_b" id="button" value="确认发起" />
              </div>
          </li>
        </ul>
        </form>
    </div>
    </div> <!-- end  -->
 </div>
  </div><!-- 画布 end  -->
  <div class="c"></div>
</div><!-- 内容 end -->
<include file="__THEME__/footer" />
{:W('Network')}


